class ClipPlane;

typedef std::list<ClipPlane*> TClipPlanesList;
TClipPlanesList clipplaneslist;

namespace ClipPlaneShare
{
int cnt;
float plane[6][4];
}

class ClipPlane
{
	Vector3D pos;
	Vector3D nrm;

	Entity *ent;

	void init();
	int active;
public:
	ClipPlane();
	ClipPlane(Vector3D position, Vector3D normal);
	~ClipPlane();

	void Process();
	void BindEntity(Entity *ent);
	void Active(int active);
};

void ProcessClipPlanes();